﻿@model BEX.WebUI.Models.ArbitrageRuleModel

@{
    ViewBag.Title = "Edit";

}

<h2>Edit</h2>




@using (Html.BeginForm("Edit", "ArbitrageRule", FormMethod.Post, new
{
    id = "ArbitrageCurrencyIntersectionID",
    data_supportedCurrenciesListAction = @Url.Action("SupportedCurrenciesList")
}))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Arbitrage Notification</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Percent)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Percent)
            @Html.ValidationMessageFor(model => model.Percent)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ExchangeA)
        </div>
        <div class="editor-field">
            
            @Html.DropDownList("ExchangeA", ViewBag.ExchangeList as SelectList,
             "Select an Exchange", new { id = "ExchangeAID" })
            @Html.ValidationMessageFor(model => model.ExchangeA)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ExchangeB)
        </div>
        <div class="editor-field">
            @Html.DropDownList("ExchangeB", ViewBag.ExchangeList as SelectList,
             "Select an Exchange", new { id = "ExchangeBID" })
            @Html.ValidationMessageFor(model => model.ExchangeB)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Pair)
        </div>
        <div class="editor-field">

            @Html.ValidationMessageFor(model => model.Pair)

            <select id="CurrenciesID" name="CurrenciesIntersection"></select>
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")

}
<script src="@Url.Content("~/Scripts/Arbitrage.js")"></script>